class Reader:
    @classmethod
    def read_board(self, filename):
        """reads a board file and returns in as an two dimentional array"""
        board = [] # clear board
        ins = open( filename, "r" ) # read test board
        linenr = 0
        for line in ins:
            line = line.rstrip()
            board.append([])
            for char in line:
                 board[linenr].append(char)
            linenr += 1
        return board

    @classmethod
    def read_move(self, filename):
        """read a move file and returns it as a string"""
        move = []
        ins = open( filename, "r" ) # read the move file
        for line in ins:
            move.append(line)
        return move

    @classmethod
    def read_dict(self, filename):
        """reads the dictionary file and inserts it into a dictionary object"""
        dictionary = {}
        ins = open( filename, "r" )
        for line in ins:
            dictionary[line.rstrip()] = 1
        return dictionary
